var mongoose = require('../db/db')
var Schema = mongoose.Schema;
var userSchema = new Schema({
    'userId': { type: String },
    'userName': { type: String },
    'userPwd': { type: Number },
    'orderList': Array,
    'cartList': [{
        "productImage": { type: String },
        "salePrice": { type: Number },
        "productName": { type: String },
        "productId": { type: String },
        "productNum": { type: Number },
        "checked": { type: String }
    }],
    'addressList': [{
        "addressId": { type: String },
        "userName": { type: String },
        "postCode": { type: String },
        "streetName": { type: String },
        "tel": { type: String },
        "isDefault": { type: Boolean }
    }]
})

module.exports = userSchema;